package com.atkxp.stustatusmasystem.mapper;

import com.atkxp.stustatusmasystem.pojo.Class;
import com.atkxp.stustatusmasystem.pojo.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2023/5/28-17:27
 */
@Repository
@Mapper
public interface ClassMapper {
    Class getClassById(int id);

    List<Class> getAllClassByTid(@Param("tid") String tid);

    List<Class> getAllClasses();

    int addClass(Class clazz);
}
